const webpack = require('webpack')
module.exports = {
    baseUrl: './',
    assetsDir: 'static',
    productionSourceMap: false,
    configureWebpack: {
        externals:{
        },
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery"
            })
        ]
    },
    devServer: {
        disableHostCheck: true,
        // host:'192.168.43.145',
        port:80,
        proxy: {
            '/apis':{
                target:'http://139.155.236.49:8080/',
                ws: true,  // proxy websockets
                changeOrigin:true,
                pathRewrite:{
                    '^/apis':''
                }
            }
        }
    },
    // css: {
    //     sourceMap: true,
    //     loaderOptions: {
    //         sass: {
    //             prependData: `@import "/node_modules/bootstrap/scss/_variables.scss";`
    //         }
    //     }
    // },

}